package com.hksj.Intelligentmanagement.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ObtainOrderResultDTO implements Serializable {
    public static final int SUCCESS = 200;

    public static final int FAIL = 100;

    public ObtainOrderResultDTO() {
    }

    public ObtainOrderResultDTO(String orderNo, String deviceCode, Date createAt) {
        this(orderNo,deviceCode,createAt,SUCCESS);
    }

    public ObtainOrderResultDTO(String orderNo, String deviceCode, Date createAt,int status) {
        this.orderNo = orderNo;
        this.deviceCode = deviceCode;
        this.createAt = createAt;
        this.status = status;
    }

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 设备id
     */
    private String deviceCode;

    /**
     * 抢单结果发布时间
     */
    private Date createAt;

    private int status;
}

